- content_for :meta do
  %meta{:name => "Description", :content => "If you want to know what Jetty Rae's talking about, you've come to the right place"}
  %meta{:name => "Abstract", :content => "Jetty Rae's Blog"}
  %meta{:name => "Keywords", :content => "blog, jetty rae, music, indie, folk, acoustic"}
- content_for :title do
  = "- Jetty Rae's Blog"
- content_for :page_description do
  %p Here is Jetty Rae's blog, full of her comments, thoughts, and reflections on her shows, music, and current events.
%div.heading
  %img.heading{:src => "/images/headings/sections/my_blog.jpg", :title => "My blog posts", :alt => "My blog posts"}
- @blog_posts.each do |blog_post|
  %table.show_header_info{:class => "blog_post_index"}
    %tr
      %td.location
        %h1.show_location
          %a{:href => blog_post_url(blog_post), :title => blog_post.title}
            = blog_post.title
      %td.date
        %h2.show_date= blog_post.created_at.strftime("%B %o, %Y at %I:%M %p")
  %table.blog_post
    %tr
      %td.blog_post
        = blog_post.text
    %tr
      %td.blog_post_comments
        %hr
        %a{:href => blog_post_url(blog_post) + "#comments", :title => ("Comment on Jetty Rae's blog post " + blog_post.title)}
          = pluralize(blog_post.comments.count, "comment")
        |
        %a{:href => blog_post_url(blog_post) + "#newcomment", :title => ("Comment on Jetty Rae's blog post " + blog_post.title)} Comment on this post
        - if logged_in? && current_user.is_admin?
          |
          %a{:href => edit_blog_post_url(blog_post), :title => ("Edit this post: " + blog_post.title)} Edit
%div.pagination
  = will_paginate @blog_posts
- if logged_in? && current_user.is_admin?
  %div.add_new
    %a{:href => new_blog_post_url, :title => "Add a new blog post to the website", :alt => "Add a new blog post to the website"}
      %img{:src => "/images/up_arrow.jpg", :title => "Add a new blog_post", :alt => "Add a new blog post"}
      Add a new blog post